const webpack = require('webpack')
const path = require('path')
const vendors = [
    'moment', 
    "antd", 
    'react', 
    'react-dom', 
    'react-router', 
    'react-router-dom', 
    'classnames',
    'bootstrap',
]

module.exports = {
    output: {
        path:  path.resolve(__dirname,'./dist'),
        filename:'[name].js',
        library: '[name]'
    },
    entry: {
        "lib": vendors
    },
    plugins: [
        new webpack.DllPlugin({
            path: 'manifest.json',
            name: '[name]',
            context: __dirname
        }),
    ]
}